package com.bingo.cf.certification.server.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tip.restful.core.entity.IModelCreator;
import com.tip.restful.core.entity.IModelModifyer;
import com.tip.restful.core.entity.ModelBase;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Auto-Generated
 * @since 2018-12-18
 */
@TableName("demo_sub_table")
public class DemoSubTable extends ModelBase<DemoSubTable> implements IModelCreator, IModelModifyer {

    private static final long serialVersionUID = 1L;

    /**
     * 子表ID
     */
    @TableId("DEMO_SUB_ID")
    @NotBlank(message = "demoSubId不能为空")
    private String demoSubId;
    /**
     * 子表名
     */
    @TableField("DEMO_SUB_NAME")
    private String demoSubName;
    /**
     * demo主表
     */
    @TableField("DEMO_ID")
    private String demoId;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;
    /**
     * 是否
     */
    @TableField("STATE")
    private int state;
    /**
     * 创建人ID
     */
    @TableField("CREATOR_ID")
    private String creatorId;
    /**
     * 创建人名称
     */
    @TableField("CREATOR_NAME")
    private String creatorName;
    /**
     * 创建日期
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 修改人ID
     */
    @TableField("MODIFIER_ID")
    private String modifierId;
    /**
     * 修改人名称
     */
    @TableField("MODIFIER_NAME")
    private String modifierName;
    /**
     * 修改日期
     */
    @TableField("MODIFY_DATE")
    private Date modifyDate;


    public String getDemoSubId() {
        return demoSubId;
    }

    public void setDemoSubId(String demoSubId) {
        this.demoSubId = demoSubId;
    }

    public String getDemoSubName() {
        return demoSubName;
    }

    public void setDemoSubName(String demoSubName) {
        this.demoSubName = demoSubName;
    }

    public String getDemoId() {
        return demoId;
    }

    public void setDemoId(String demoId) {
        this.demoId = demoId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String getCreatorId() {
        return creatorId;
    }

    @Override
    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    @Override
    public String getCreatorName() {
        return creatorName;
    }

    @Override
    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    @Override
    public Date getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String getModifierId() {
        return modifierId;
    }

    @Override
    public void setModifierId(String modifierId) {
        this.modifierId = modifierId;
    }

    @Override
    public String getModifierName() {
        return modifierName;
    }

    @Override
    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    @Override
    public Date getModifyDate() {
        return modifyDate;
    }

    @Override
    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.demoSubId;
    }
}
